/**
 *	\file AKDSQPlayer.mm
 *  
 *  \section desc_sec Description
 *  Description
 *  
 *  \if copyright
 *  	Copyright 2008 Ben Chen. All rights reserved.
 *  \endif
 *  
 *  \section hist_sec Change History:
 *  	-	2/21/08		BC		Created this file
 *  
 *  <hr>
 *  \addtogroup AnimalKingdom
 *  @{
 */

#import "AKDSQ.h"
#import "AKDSQPlayer.h"
#import "AKCPPPlayerAdapter.h"
#import "CDSQPlayer.h"

@implementation AKDSQPlayer

- (id)initWithSide:(AKSideIndex)anIndex 
	  numOfPlayers:(unsigned)playersCount {
	id <AKPlayer> retVal = nil;
	self = [super init];
	if (self != nil) {
		CDSQPlayer *dsqPlayer = new CDSQPlayer(anIndex, playersCount);
		AKCPPPlayerAdapter *adapter = [[AKCPPPlayerAdapter alloc] initWithSide:anIndex numOfPlayers:playersCount];
		[adapter setPlayer:dsqPlayer];
		[self autorelease];
		retVal = adapter;
	}
	return retVal;
}

// Just to get rid of warnings
- (void) backToInitialState {
}

- (AKMove) bestMove {
	return AKZeroMove;
}

- (BOOL) performMove:(AKMove)move {
	return NO;
}

- (void) stopThinking {
}

- (void) thinkNextMove {
	return;
}

- (AKSideIndex) side {
	return NSNotFound;
}

- (void) setSide:(AKSideIndex)newSide {
}

@end

/** @} */
